package com.ctshk.rpc.order.air.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @BelongsProject: ctshk-cloud
 * @BelongsPackage: com.ctshk.rpc.order.air.req
 * @Author: hef
 * @CreateTime: 2021-04-08 17:11
 * @Description: 描述
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class AirOrderConfirmOrderReq implements Serializable {

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    @ApiModelProperty(value = "订单id",required = true)
    private Long orderId;

    @ApiModelProperty(value = "供应商数据")
    private List<SupplierData> supplierData;


    @Data
    public static class SupplierData implements Serializable {
        /**
         * t_air_order_flight表主键
         */
        @ApiModelProperty(value = "航班信息id")
        private Long flightId;
        /**
         * 产品id
         */
        @ApiModelProperty(value = "产品id(如果有航班信息id可以不传该id)")
        private Long productId;
        /**
         * 供应商票号
         */
        @ApiModelProperty(value = "供应商票号")
        private String supplierTicketNumber;
        /**
         * 凭证
         */
        @ApiModelProperty(value = "凭证")
        private String certificate;
    }

}
